package com.daniel.mi.converter;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

/**
 * @Author zengneng46764
 * @Date 2024/3/6 22:32
 * @Since 1.0.0.0
 * @description: 转换器
 */
public interface QueryDtoEntityConverter <Q, D, E> {
    QueryWrapper<E> fromQueryToWrapper(Q query);

    E fromDtoToEntity(D dto);

    D fromEntityToDto(E entity);
}
